<?php

namespace App\Http\Controllers\Admin;

use Illuminate\Http\Request;

use App\Http\Requests;
use App\Http\Controllers\Controller;
use App\Models\Amiba;
class CountBarController extends Controller
{
  
    
    
     public function bar1()
    {
        return view('admin.countbar.bar1');
    }
    
    
     public function bar2()
    {
        return view('admin.countbar.bar2');
    }
    
    
     public function bar3()
    {
        return view('admin.countbar.bar3');
    }
    
    
     public function bar4()
    {
        return view('admin.countbar.bar4');
    }
     public function bar5()
    {
        return view('admin.countbar.bar5');
    }
     public function bar6()
    {
        return view('admin.countbar.bar4');
    }
     public function bar7()
    {
        return view('admin.countbar.bar7');
    }
    
     public function bar8()
    {
        return view('admin.countbar.bar8');
    }
     public function bar9()
    {
        return view('admin.countbar.bar9');
    }
    
    public function ajaxBar1()
    {
        $model_amiba = new Amiba();
        $model_amiba = $model_amiba->ajaxbar1();
        return json_encode($model_amiba, true);
    }
    
      public function ajaxBar2()
    {
          $model_amiba = new Amiba();
        $model_amiba = $model_amiba->ajaxbar2();
        return json_encode($model_amiba, true);
    }
      public function ajaxBar3()
    {
        $model_amiba = new Amiba();
        $model_amiba = $model_amiba->ajaxbar3();
        return json_encode($model_amiba, true);
    }
      public function ajaxBar4()
    {
           $model_amiba = new Amiba();
        $model_amiba = $model_amiba->ajaxbar4();
        return json_encode($model_amiba, true);
    }
      public function ajaxBar5()
    {
           $model_amiba = new Amiba();
        $model_amiba = $model_amiba->ajaxbar5();
        return json_encode($model_amiba, true);
    }
      public function ajaxBar6()
    {
         $model_amiba = new Amiba();
        $model_amiba = $model_amiba->ajaxbar6();
        return json_encode($model_amiba, true);
    }
      public function ajaxBar7()
    {
          $model_amiba = new Amiba();
        $model_amiba = $model_amiba->ajaxbar7();
        return json_encode($model_amiba, true);
    }
      public function ajaxBar8()
    {
             $model_amiba = new Amiba();
        $model_amiba = $model_amiba->ajaxbar8();
        return json_encode($model_amiba, true);
    }
    public function ajaxBar9()
    {
         $model_amiba = new Amiba();
        $model_amiba = $model_amiba->ajaxbar9();
        return json_encode($model_amiba, true);
    }
    
    
    public function project1()
    {
        return view('admin.countbar.project1');
    }
    public function ajaxProject1()
    {
              $model_amiba = new Amiba();
        $model_amiba = $model_amiba->ajaxproject1();
        return json_encode($model_amiba, true);
    }
    
     public function project2()
    {
           return view('admin.countbar.project2');
    }
    public function ajaxProject2()
    {
        $model_amiba = new Amiba();
        $model_amiba = $model_amiba->ajaxproject2();
        return json_encode($model_amiba, true);
    }
    
     public function project3()
    {
           return view('admin.countbar.project3');
    }
    public function ajaxProject3()
    {
              $model_amiba = new Amiba();
        $model_amiba = $model_amiba->ajaxproject3();
        return json_encode($model_amiba, true);
    }
    
    
     public function project4()
    {
           return view('admin.countbar.project4');
    }
    public function ajaxProject4()
    {
              $model_amiba = new Amiba();
        $model_amiba = $model_amiba->ajaxproject4();
        return json_encode($model_amiba, true);
    }
}
